<table class="grid" border="1">
<tr>
	{foreach $columns as $column}
	<th><a href="{link order $column}"
	{if isset($order[$column])} class="{$order[$column][0] === 'a' ? 'asc' : 'desc'}"{/if}
	>{$column}{if count($order) > 1 && isset($order[$column])}&nbsp;<span>{$order[$column][1]}</span>{/if}</a></th>
	{/foreach}
</tr>

{foreach $rows as $row}
<tr{!$iterator->isEven() ? ' class="alt"' : ''}>

	{foreach $row as $value}
	<td>{=substr($value, 0, 100)}</td>
	{/foreach}

</tr>
{/foreach}
</table>
